/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session01;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author macbookpro
 */
public class MyThreadTest {
    public static void main(String[] args) {
        System.out.println("BEGIN MAIN THREAD");
        
        MyThread t = new MyThread();
        t.setDaemon(true);
        t.start();
//        try {
//            Thread.sleep(1000);
//        } catch (InterruptedException ex) {
//            Logger.getLogger(MyThreadTest.class.getName()).log(Level.SEVERE, null, ex);
//        }
        
        System.out.println("END MAIN THREAD.");
    }
}
